<template>
	<u-navbar :is-back="false" title="小律懂法" :background="background" :border-bottom="false" title-color="#ffffff"
		height="44" :title-size="32" style="position: relative;">
		<view class="city" v-if="userInfo&&city" @click="$emit('getLocation')"><u-icon name="map" size="28"></u-icon>{{city}}</view>
		</u-navbar>
</template>

<script>
	export default {
		props:{
			city:{
				type:String
			}
		},
		data() {
			return {
				background: {
					backgroundImage: 'linear-gradient(to bottom, #0c86f1, #2c95f1)',
					// backgroundImage: 'linear-gradient(to bottom,#ffffff,#333333)'
				}
			}
		}
	}
</script>

<style scoped lang="scss">
	@import "./navbar.scss";
</style>
